const { defineConfig } = require("@vue/cli-service");

module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          // 插件文档：https://www.npmjs.com/package/postcss-px-to-viewport
          plugins: [
            [
              "postcss-px-to-viewport",
              {
                runitToConvert: "px",
                viewportWidth: 375, // 设计稿宽度
                unitPrecision: 3,
                propList: ["*"],
                viewportUnit: "vw",
                fontViewportUnit: "vw",
                selectorBlackList: [],
              },
            ],
          ],
        },
      },
    },
  },
});
